package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.math.BigDecimal;
import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.SaleServerCostRecordExample.E_COMPANY_ID;
import static org.jsola.hr.example.SaleServerCostRecordExample.E_COMPANY_NAME;
import static org.jsola.hr.example.SaleServerCostRecordExample.E_COST_MONTH;
import static org.jsola.hr.example.SaleServerCostRecordExample.E_REMARK;
import static org.jsola.hr.example.SaleServerCostRecordExample.E_SERVER_COST;
import static org.jsola.hr.example.SaleServerCostRecordExample.E_SERVER_TYPE;
import static org.jsola.hr.example.SaleServerCostRecordExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.SaleServerCostRecordExample.M_COMPANY_ID_NOT_NULL;
import static org.jsola.hr.example.SaleServerCostRecordExample.M_COMPANY_NAME_MAX;
import static org.jsola.hr.example.SaleServerCostRecordExample.M_COMPANY_NAME_NOT_NULL;
import static org.jsola.hr.example.SaleServerCostRecordExample.M_COST_MONTH_MAX;
import static org.jsola.hr.example.SaleServerCostRecordExample.M_COST_MONTH_NOT_NULL;
import static org.jsola.hr.example.SaleServerCostRecordExample.M_REMARK_MAX;
import static org.jsola.hr.example.SaleServerCostRecordExample.M_SERVER_COST_NOT_NULL;
import static org.jsola.hr.example.SaleServerCostRecordExample.M_SERVER_TYPE_MAX;
import static org.jsola.hr.example.SaleServerCostRecordExample.N_COMPANY_ID;
import static org.jsola.hr.example.SaleServerCostRecordExample.N_COMPANY_NAME;
import static org.jsola.hr.example.SaleServerCostRecordExample.N_COST_MONTH;
import static org.jsola.hr.example.SaleServerCostRecordExample.N_REMARK;
import static org.jsola.hr.example.SaleServerCostRecordExample.N_SERVER_COST;
import static org.jsola.hr.example.SaleServerCostRecordExample.N_SERVER_TYPE;

/**
 * 客户服务费记录
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【客户服务费记录】的参数")
@Data
public class SaleServerCostRecordUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID, required = true)
    @NotNull(message = M_COMPANY_ID_NOT_NULL)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;

    @ApiModelProperty(notes = N_COMPANY_NAME, example = E_COMPANY_NAME, required = true)
    @NotNull(message = M_COMPANY_NAME_NOT_NULL)
    @Length(max = 50, message = M_COMPANY_NAME_MAX)
    private String companyName;

    @ApiModelProperty(notes = N_COST_MONTH, example = E_COST_MONTH, required = true)
    @NotNull(message = M_COST_MONTH_NOT_NULL)
    @Length(max = 5, message = M_COST_MONTH_MAX)
    private String costMonth;

    @ApiModelProperty(notes = N_SERVER_COST, example = E_SERVER_COST, required = true)
    @NotNull(message = M_SERVER_COST_NOT_NULL)
    private BigDecimal serverCost;

    @ApiModelProperty(notes = N_REMARK, example = E_REMARK)
    @Length(max = 255, message = M_REMARK_MAX)
    private String remark;

    @ApiModelProperty(notes = N_SERVER_TYPE, example = E_SERVER_TYPE)
    @Length(max = 50, message = M_SERVER_TYPE_MAX)
    private String serverType;


}

